package router

import (
	"github.com/kataras/iris/v12"
	"wit-admin-go/system/app/controller"
)

func Role(app iris.Party) {
	role := app.Party("/role")
	{
		role.Post("/createRole", controller.Role.CreateRole).Name = "创建角色"
		role.Get("/getRoleById", controller.Role.GetRoleById).Name = "角色详情"
		role.Get("/getRoleList", controller.Role.GetList).Name = "角色列表"
		role.Delete("/deleteRole", controller.Role.DeleteRole).Name = "删除角色"
		role.Delete("/removeRole", controller.Role.RemoveRole).Name = "永久删除角色"
		role.Put("/updateRole", controller.Role.UpdateRole).Name = "更新角色"
		role.Put("/updateRoleMenu", controller.Role.UpdateRoleMenu).Name = "角色绑定菜单"

	}
}
